package member

import (
	"context"
	"micro-oauth/datamodels"
	"micro-oauth/datamodels/autherror"
)

// OauthService提供 各个partner管理他们自己数据 的功能, OauthService都只能抛出hexError
type MemberServiceInterface interface {
	Register(user *datamodels.User) (interface{}, autherror.HexError)
	GetUserById(ctx context.Context, userId uint64) (*datamodels.User, autherror.HexError)
	GetUserInfo() (interface{}, autherror.HexError)
}
